package com.xinqi.modules.course.classmenu.client;

import com.xinqi.modules.course.classmenu.dto.rsp.ClassMenuInitResultDTO;
import com.xinqi.modules.course.classmenu.dto.req.ClassMenuInitQueryDTO;
import com.xinqi.modules.course.classmenu.dto.req.ClassMenuInitCreateDTO;
import com.xinqi.modules.course.classmenu.dto.req.ClassMenuInitUpdateDTO;
import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.PageInfo;
import com.xinqi.common.base.response.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 版块设置基础信息表客户端
 *
 * @author: linkai
 * @date: 2023/10/25
 */
@FeignClient(contextId = "classMenuInitClient", value = ServiceNameConstants.XQ_COURSE)
public interface ClassMenuInitClient {
    String INNER_PREFIX = "/inner/class-menu-init";

    /** 版块设置基础信息表-分页 */
    @GetMapping(INNER_PREFIX + "/page")
    R<PageInfo<ClassMenuInitResultDTO>> page(ClassMenuInitQueryDTO dto);

    /** 版块设置基础信息表-详情 */
    @GetMapping(INNER_PREFIX + "/{id}")
    R<ClassMenuInitResultDTO> findById(@PathVariable("id") Long id);

}
